<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
<head>
<title>编辑公众号</title>
<meta name="decorator" content="default" />
<script type="text/javascript" src="${ctxStatic}/scripts/singlePic.js"></script>
<script type="text/javascript" >
	$(function() {
		//初始化表单验证
		$("#inputForm").initValidform();
	});
	
</script>

</head>

<body class="mainbody">
	<form:form id="inputForm" modelAttribute="pubNumber"
		action="${ctx}/bt/pubNumber/save" method="post"
		class="form-horizontal">
		<form:hidden path="id" />
		<!--导航栏-->
		<div class="location">
			<a href="${ctx}/bt/pubNumber/list" class="back"><i></i><span>返回列表页</span></a>
			<a href="${ctx}/center" class="home"><i></i><span>首页</span></a> <i
				class="arrow"></i> <a
				href="${ctx}/bt/pubNumber/form?id=${pubNumber.id}"><span>公众号</span></a>
			<i class="arrow"></i><span>${not empty pubNumber.id ? '修改':'添加' }公众号</span>
		</div>
		<div class="line10"></div>
		<!--/导航栏-->

		<!--内容-->
		<div id="floatHead" class="content-tab-wrap">
			<div class="content-tab">
				<div class="content-tab-ul-wrap">
					<ul>
						<li><a class="selected" href="javascript:;">公众号信息</a></li>
					</ul>
				</div>
			</div>
		</div>

		<div class="tab-content">
			<table>
				<tr>
					<td>
						<div id="localImag">
							<img id="preview"  width=100 height=100 style="diplay: none" src="${pubNumber.imageUrl} " />
						</div>
						<br/>
						<label for ="doc">&nbsp;点击修改项目图标</label>
						
						 <input type=file name="doc" id="doc"enctype="multipart/form-data"
						onchange="javascript:setImagePreview();"accept="image/jpeg,image/png,image/gif,image/x-icon,image/bmp"
						style="position:absolute;clip:rect(0 0 0 0);">

					</td>


					<td>
						<dl>
							<dt>公众号名称</dt>
							<dd>
								<form:input path="pubNumberName" htmlEscape="false"
									maxlength="50" class="required" cssClass="input normal"
									datatype="" nullmsg="请输入公众号名称" errormsg="请输入公众号名称" sucmsg=" " />
								<span class="Validform_checktip">请输入公众号名称</span>
							</dd>
						</dl>
						<dl>
							<dt>微信号</dt>
							<dd>
								<form:input path="wechatId" htmlEscape="false" maxlength="50"
									class="required" cssClass="input normal" datatype=""
									nullmsg="请输入微信号" errormsg="请输入微信号" sucmsg=" " />
								<span class="Validform_checktip">请输入微信号</span>
							</dd>
						</dl>
						<dl>
							<dt>appid</dt>
							<dd>
								<form:input path="appid" htmlEscape="false" maxlength="50"
									class="required" cssClass="input normal" datatype=""
									nullmsg="请输入appid" errormsg="请输入appid" sucmsg=" " />
								<span class="Validform_checktip">请输入appid</span>
							</dd>
						</dl>
						<dl>
							<dt>appsecret</dt>
							<dd>
								<form:input path="appsecret" htmlEscape="false" maxlength="50"
									class="required" cssClass="input normal" datatype=""
									nullmsg="请输入appsecret" errormsg="请输入appsecret" sucmsg=" " />
								<span class="Validform_checktip">请输入appsecret</span>
							</dd>
						</dl>
						
						<dl>
				<dt>消息接入</dt>
				<dd>
					<div class="rule-multi-radio">
						<form:radiobutton name="messageAccess" path="messageAccess" value="1" label="接入" htmlEscape="false"  checked="true"  class="required" />
						<form:radiobutton name="messageAccess" path="messageAccess" value="0" label="不接入" htmlEscape="false"  class="required" />
					</div>
				</dd>				
			</dl>
					</td>
				</tr>
			</table>
			<br/>
			<hr
				style="height: 1px; border: none; border-top: 1px dashed #D3D3D3;"
				width="75%" />
			<br />
			<table>
				<tr>
					<td><img src="${ctxStatic}/images/gm.png" width="100" height="100" /><br/> <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;微信号管理员<br />
					</td>
					<td>

						<dl>
							<dt>*负责人姓名</dt>
							<dd>
								<form:input path="managerName" htmlEscape="false" maxlength="50"
									class="required" cssClass="input normal" datatype="*"
									nullmsg="请输入负责人姓名" errormsg="请输入负责人姓名" sucmsg=" " />
								<span class="Validform_checktip">*请输入负责人姓名</span>
							</dd>
						</dl>
						<dl>
							<dt>*联系人手机</dt>
							<dd>
								<form:input path="phone" htmlEscape="false" maxlength="50"
									class="required" cssClass="input normal" datatype="m"
									nullmsg="请输入联系人手机" errormsg="请输入联系人手机" sucmsg=" " />
								<span class="Validform_checktip">*请输入联系人手机</span>
							</dd>
						</dl>
						<dl>
							<dt>*联系人邮件</dt>
							<dd>
								<form:input path="email" htmlEscape="false" maxlength="50"
									class="required" cssClass="input normal" datatype="e"
									nullmsg="请输入联系人邮件" errormsg="请输入联系人邮件" sucmsg=" " />
								<span class="Validform_checktip">*请输入联系人邮件</span>
							</dd>
						</dl>
						<dl>
							<dt>*联系人QQ</dt>
							<dd>
								<form:input path="qq" htmlEscape="false" maxlength="50"
									class="required" cssClass="input normal" datatype="*"
									nullmsg="请输入联系人QQ" errormsg="请输入联系人QQ" sucmsg=" " />
								<span class="Validform_checktip">*请输入联系人QQ</span>
							</dd>
						</dl>

					</td>
				</tr>
			</table>
			<br />
			<hr
				style="height: 1px; border: none; border-top: 1px dashed #D3D3D3;"
				width="75%" />
			<br />
			<table>
				<tr>
					<td><img src="${ctxStatic}/images/number.png" width="100"
						height="100"><br/> <br />&nbsp;&nbsp;&nbsp;&nbsp;编码分配策略<br /></td>
					<td>
						<dl>
							<dt>*预计分配数量</dt>
							<dd>
								<form:input path="number" htmlEscape="false" maxlength="50"
									class="required" cssClass="input normal" datatype="*"
									nullmsg="请输入预计分配数量" errormsg="请输入预计分配数量" sucmsg=" " />
								<span class="Validform_checktip">*请输入预计分配数量</span>
							</dd>
						</dl>
						<dl>
							<dt>可分配码段设置</dt>
							<dd>
								<form:input path="codeNumeer" htmlEscape="false" maxlength="50"
									value="1000000" class="required" cssClass="input normal"
									datatype="n" nullmsg="请输入分配码段" errormsg="请输入分配码段" sucmsg=" " />
								<span class="Validform_checktip">*请输入分配码段</span>
							</dd>
						</dl>
					</td>
				</tr>
			</table>
			<br />
			<hr
				style="height: 1px; border: none; border-top: 1px dashed #D3D3D3;"
				width="75%" />
			<br />
		</div>


		<!--/内容-->

		<!--工具栏-->
		<div class="page-footer">
			<div class="btn-wrap">
				<input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit"
					class="btn" /> <input name="btnReturn" type="button" value="返回上一页"
					class="btn yellow" onclick="javascript:history.back(-1);" />
			</div>
		</div>
		<!--/工具栏-->
	</form:form>
</body>
</html>

